<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
	<span class="label label-success">代驾员账号余额修改</span>
	<form id="form1" class="well form-horizontal" action="/recharge/update"  method="post" >
	  <input type="hidden" name="recharge.b_user_id" value="${driver.id}">
      <div class="control-group">
        <label class="control-label" for="focusedInput">工号：</label>
        <div class="controls" >
       	 ${driver.job_number!""}
        </div>
      </div>
       <div class="control-group">
        <label class="control-label" for="focusedInput">代驾员姓名：</label>
        <div class="controls" >
        	${driver.name!""}
        </div>
        </div>
       <div class="control-group">
        <label class="control-label" for="focusedInput">当前余额：</label>
        <div class="controls" >
        	<#if driver.balance??>
		   	   	 ￥${driver.balance?string(",##0.0#")}
		    <#else>
		   	    ￥0.0
		    </#if>
        </div>
        
      </div>
      <div class="control-group">
        <label class="control-label" for="focusedInput">增加扣除金额：</label>
        <div class="controls" >
          <input class="input-xlarge focused" name="recharge.money" id="money" type="text"  style="height: 26">（增加金额，例如：输入10，扣除金额，例如输入：-10）
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="focusedInput">备注：</label>
        <div class="controls" >
          <input class="input-xlarge focused" name="remark" id="remark" type="text"  style="height: 56px;"  >
        </div>
      </div>
      <div class="form-actions">
        <button type="submit" class="btn btn-primary" onsubmit="save()">确 定</button>
        <button type="reset" class="btn">重 置</button>
        <button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
      </div>
  </form>
  </div>

<script>
	$(function() { 
     $("#form1").validity(function() {
         $("#money").require().match("number");
         $("#driver_age").require().match("number");
     });
     
 }); 
</script>
</@layout>